FROM registry.cn-zhangjiakou.aliyuncs.com/dvadmin-pro/python38-base-backend:latest
WORKDIR /backend
COPY ./backend/ .
RUN python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ -r requirements-linux.txt
COPY /backend/task.py /usr/local/lib/python3.8/site-packages/dvadmin_celery/views/
CMD ["celery", "-A", "application", "worker", "-B", "--loglevel=info"]

